Bump version to 0.2

This bumps the version and also adds the de-facto convention of having a __version__ attribute at the top level of a module/package.

Should be merged after everything else relevant to 0.2