Moving all api stuff into api folder