Prepare 0.4.0 release.
Merge pull request #46 from apenney/0.4.0

Prepare 0.4.0 release.