The brown stuff is certainly diatoms. The bubbles can make one think of dinoflagellates, but that is diatoms. The bubbles are the oxygen gas it is producing from photosynthesis. If you leave the lights out for and extended period of time, the diatoms will actually use that oxygen in the reverse process and they will disappear. The best thing to do is to suck it out so as to remove it from the tank. If you just stir the sand, it will look better, but the diatoms will still be there and reclaim the sand within a couple days. If you are wanting to have a cuc remove that kind of growth, you will need about 10-20 crabs and snails for each square foot of your light exposed surface area. Rarely do folks have enough inverts to cover the job desired. I know that is a lesson I learned personally in the last couple years. Hope you get it under control.