Move code out of __init__.py.

This is pretty much always imported when installing, and that causes problems
due to trying to import dependencies we haven't installed yet.
Bump version to 0.2.0.