Moving API interfaces to seperate package

Moving all of the API interfaces to an API package.