full rewrite with backward compatibility
add support branches: user/repo#branch
apply non-master branch changes to tarball and travis urls