added glimmpseConstants to app.js for shared constants, and added
to most controllers.  Added fromJSON function to studyDesignService
to copy in uploaded data, and reset function to clear data on cancel
stateController now sends actual JSON to power service.  Minor style
updates