Add support for the four main HTTP methods. Fixes #2.