Added support for github releases. Fixes travis-ci/travis-ci#1648.