Adding api stuff
Adds api infrastructure