Enable nightly and release for travis

Also update the test script
Build package before tests
Merge pull request #42 from JuliaLang/as/travis

Enable nightly and release for travis