Added check for local host.

Change template reference over to the Hortonworks repo and
added parameter for branch information.
Ambari Repo Upgrade.
Fixed to handle both HDP 1.3.0 and 1.3.2 on RHEL/CentOS 6.

Simplified dependencies and templates to make it more resilient
for the next upgrade.