Release 0.4.0.
Bumping dev version to 0.5.0.