Add package.json and gitignore; update server code