Change Client to take base URL as argument, add tests

Change how callers construct ``Clients`` to make testing easier. Then add tests for:

- [x] Posting
- [x] Fetching room history
- [x] Listing rooms

This addresses part of (1) in andybons/hipchat#1. Since we're adding tests anyways, I also added a Travis config file and badge.