Created server files.
Fixed up app.js.
Added server node modules to package.json and updated .gitignore to remove www/lib folder.