Factor server code into separate project.
Add gitignore.