Add .travis.yml and fix setup.py

Also replace wrong import in test_configuration.py.
Don’t compare result of hash() against absolute value.

hash() is not guaranteed to give constant results, and actually it has
been changing between different versions of Python. Therefore, id
attribute (which is generated via hash()) shouldn’t be compared to the
absolute value, but to the value generated by the expected algorithm.
Change of the import is not necessary.
Merge pull request #7 from mcepl/fix_tests

Fix tests