Merge pull request #919 from Ichimonji10/requests-wrapper

Make a better `requests` wrapper
Create some simple tests for path api/v2/hosts

Implement a few tests which check whether it's possible to GET the path, and add
some partially written tests for doing other things like POSTing and messing
with sub-paths of api/v2/hosts.
Use new `requests` wrapper