Added express middleware support

Added express middleware support. Also normalized the default global variable exported from the package for consistency. Some docs read "Foo" some read "App" and the code defined it as "foo".