Added middleware for api requests
Changed readme
Update README.rdoc
Merge pull request #6 from karthiksenthil/master

Added middleware for api requests