Rename HTTPServer to Server
Refactor using middleware model
Merge pull request #13 from SmartReceipt/middleware

Refactor using middleware model