Various Cleanup

* Use the piglet database.
* Nest result data as per spec.
* Return all data on raw get series/:id/:type.
* Attempt some kind of error checking on post body parsing.
* Fix typo in 'stringif'.
* Fix typo in 'date.date'.