Added a bunch of api stuff and we're moving it tinto more restful