Respond to OPTIONS requests
Refactor to a middleware per @kristjan's advice
Add tests, fix bug found by tests
Merge pull request #767 from Singly/bg-http-options-verb

Respond to OPTIONS requests