Added CoffeeScript middleware factory and performed necessary refactorings to make it possible.
Moved caching statement to avoid unnecessary caching.
Bumped version number to 0.3.0.