Added most of the core code of the middleware.
Updated the core of the code to work with express 4.*
Just added the documentation.