getRemotes uses callback; also, comments.

getRemotes has a callback, uses it for its setup. There's a lot of new
comments in server.js. There's a few new test cases stubbed.