Upgrade meddleware to support express 4.0. 

Publishing this module will require a major version bump.