Update Closure Compiler and Rhino to latest versions

The Closure Compiler update requires Java 7 to function.
Add prerelease and major version support to build script