Similarity

I've cleaned up the similarity module, because it's the first I was using.

The main change is that I rewrote tests using py.test. It's approach by using test functions and fixtures is much more flexible than the approach provided by unittest.

I've also made some changed to setup.py, so the package is installed with all the dependencies and configured that py.test is used by tests.