Added tests.

Uses httmock library to abstract away requests-library.
Uses nose to actually run tests.