Server jshint part 2 of 2

JSHint is happy after this change. `npm test` is ready for travis CI integration.

All pretty harmless changes, expect for a bug in `rpc.js`.