Move api server into the api module
Add startup script