Only allows users to log in if their account is enabled
changed if statment to include error message if user is not enabled
non admins can't change observatory while admins can
Remove extra blank line
Set error mode to throw exceptions for magprocdb.
Updated error handling. Abstracted error dialog method.
Fixed typo. Corrected error handling. Removed debug logging.
Update calibration start/end times to be handled similar to measurement start/end times (ms in js, s in php, translated in js factory)