Add tox support for py34 and pep8

What it says.
Fix non-deterministic test

Fixes test that sometimes failed due to relying on fuzzy math
of time changes. Also mocked sleep() calls for faster test runs.
Add .travis.yml

Add file to make travis-ci run tox for py34 and pep8 environments.