Split the server into a server.js

Per the discussion at https://github.com/krakenjs/generator-kraken/pull/150.