Move and refactor transport tests.

* Move transport tests to test folder.
* Refactor tests in unittest format; use mocks.
* Improve code style.
Drop run_tests.sh.

* Unit tests should be run by calling `nosetests` on the project home
  directory.
Improve contact tests.

* Factor guid and uri in setUpClass.
* Test __repr__ is implemented and __str__ derived.