Entry for all API calls

Introduces an "api" package that will hold the implementation for all
API calls and provides a "wsgi" WSGI application instance.