Use study status properly

This blocks the attachment of raw data to the study until after the study metadata is approved. It also adds two buttons for admins to approve a study and to make a study public.

This finishes #476 
It's if the study needs admin approval or not. This allows the user to take the study out of sandbox mode themselves if it doesn't need admin approval.