- API no longer a class.
- Fix serialization issue in APIBase for non-standard python types, e.g. from django model, datetime, etc.
- Add exception handling to API.