Refactored controller logic out of mountebank.js and into separate
controllers.