Added unit tests, and initial support for multiple HTTP verbs