semantic-versionify version number for non-releases

`1.0.0-dev` means development version leading up to 1.0.0.
Merge pull request #3800 from minrk/semver

semantic-versionify version number for non-releases