Bump version to 0.4.0

WARNING: This may break backwards compatibility with previous version!