update documentation and fix things that got broken with versions of express >= 4.0