Server refactoring

Factor out Server into a singleton class and launch it from `index.js`.  Update references to Server from other modules.

Should make interaction with the Server object more straightforward without the need to have the Server object passed in during object construction.