Rearrange the source tree to accomodate the application.

Move the server specific files under server, so that we can
decouple the server from the application logic.