Added tests for the model. Made some usability tweaks. Removed useless code in Middleware.
Bump npm version up.