bug fixes and heroku support

heroku support is only for a single `listen` directive at the moment.