Support pre-release versions in getVersionSize().
cleanup.
Fix jshint
Merge pull request #1607 from bendiy/pre-release-load

Support pre-release versions in getVersionSize().