Moved the server to a module

The app engine script is still outside
Update test to support the new module structure