Adding first version of revised egoweb REST API spec.
Add first iteration of API controller doing basic API key check.

Added additioanl columns to Study model.

Set creation timestamp default in Study & Interview models.
Fixed if logic controlling error message in _sendResponse()
Fixed logic checking for $_GET['survey_id'] in getSurvey()
Remove description in response from getSurvey()
Added additional fields in getSurvey() response.
Removed unnecessary Interview->behaviors() function.
Changes to getUser()
Refactored getUser() to query $intv->value == $_GET['user_id'] and return surveys_completed and surveys_started only if not null.
Cleaned up ApiController->createSurvey() and Interview->getInterviewFromPrimekey() to handle encrypted value field and error condition.
Added editSurvey().
Use return in error condition instead of if/else logic where possible.
Merge remote-tracking branch 'origin/api' into dev
api updates