Ability to use latest as a branch name

If you specify latest as a branch name, it will automatically detect the
latest build, and use that.