Build & deployment improvements

Moved all auto deploy, deployment type, deployment branch logic into
the gear script