Prepares version 0.4.0 with new versioning mechanism