Updated to expose an API that I *hope* integrates with ExpressJS.
Needed if I'm ever going to make this NPM-able.