Refactored server.js into small methods.
Middle of something.