Refactored API
Refactored Tests
Changes travis test command to tox with envs

This changes travis command for test to tox -e TOX_ENV
and sets up travis environments to TOX_ENV=py27
and TOX_ENV=pep8.

This way travis will run both tests on python 2.7
and will check if code is ok by pep8.

Another benefit is that we now have only one place to define
tests and pep8 options - tox.ini

It also commands travis to install tox first.
Merge pull request #102 from petrblaho/tox-on-travis

Changes travis test command to tox with envs
Merge pull request #101 from mtaylor/refactor_work

Refactor tests and api files