Prepare for 0.4.0 release.
Prepare master for 0.5 development.