Fix behavior of preflight request methods
Add tests for helper functions
Merge pull request #81 from wcdolphin/patch/preflight

Improve behavior of preflight requests. Headers which should only be returned in preflight requests are now only returned in preflight requests :-)