Api

Addresses issues 6 and 9, adding HTTPUnit tests.