Finished most of the API. Missing the push notification stuff