Add support for Activities and Actions

* Activities endpoints (currently always fail)
* Actions endpoints (purge endpoint currently always fails)
* Split api and objects into sub-packages
* Various minor fixes.