Single item API

* Single items have a nice api which pulls out meta too from relationship, no joins!
* Done by implementing `_to_dict()` methods on ORM objects
* No datatables functionality (I don't feel they need it at the moment)
* Updated single sql statement page to use the api.