Move version to separate file

I keep forgetting to update the version number in setup.py. Fix that.
Add test for regression #34