Updates version from 0.3.1-SNAPSHOT to 0.4.0-SNAPSHOT

Preparing for OSS release.