added tests, updated implementation to support other HTTP verbs; closes #1