Organizing module exports.

@fehguy, let me know what you think.

I'm mainly organizing the exports more and making `swagger.js` just the constructor and related prototype.

I also removed `stopWithError` as a global.