set up the API before running the server
Merge pull request #221 from scoreloop/setup-api

set up the API before running the server