Update api to properly work with complex data types and add data retrieval and session deletion functionality
data deletion converts possible time params to UTC seconds past epoch
provide correct http response code
add comments and edit formatting
removed converting param values to json objects
replaced hashed comments (#) with php convention (//)
Merge pull request #1 from ProctorCam/api_update

Api update