Quick pep8 cleanup and code shuffling

* Because I tend to start tidying up whenever I visit a new codebase.
Issue #11: Reworked tests & travis-ci integration

* Reworked tests a bit to cover login & event submission

* Updated docs with nosetests command

* First stab at travis-ci.org integration

* Random obsessive little tweaks.