Add package.json and opt parsing to server.js; closes #2