Added HTTP replaying for pull requests
Create a common test case class.

- Sets up authentication.
- Handles recording or replaying HTTP traffic.
Setup tests for Travis.

- For pull requests use HTTP records to replay traffic.
- For master use the encrypted oAuth keys like normal.
Merge pull request #333.

Made a few changes and setup Travis config.