JSON fixes

So, the JSON structure isn't exactly like the XML structure (e.g. no wrapper object/array for posting data). I've gone through and fixed each of those instances to work. I've tested the time tracking portion extensively, and I'm slowly working towards others.

Also, the callback to Restler was failing on two accounts: 
 1. I must have removed typeof from the callback testing which meant it failed even when there was a valid callback
 2. Restler will pass data as an instance of Error if there is an error, so I altered the callback to exploit that so that error is null unless there is an error.