Upgrade to express.js 4, expose router and remote as library.

We don' t want to attempt to connect here before checking that all of the initial configuration is correct. The HTTP server should listen first, then attempt to connect to rippled