Move server logic to separate file.
Merge branch 'master' of github.com:bspoon/sandbox