Cleanup and bump version.
Regenerate gemspec for version 0.4.0