JSON style errors, $resource, and more.

Used the Google style guide for JSON errors.  Converted services to use
$resource.