Adapt update_version for recent changes.
Update Lucy version to 0.4.0.
Add CHANGES entries for 0.3.x bugfix releases.
Update CHANGES for 0.4.0.
Prepare for removal of CGI in Perl 5.22.