[Review] Api

Adding in the api, mostly. This is somewhat forcing a few login issues as well.