Use grains for deployment targets

Rather than using minion regex for targeting deployments, this
change uses grains for targeting. It also includes a refactor of
the git-deploy hooks.

Change-Id: I65bb6f104d997c2635af848daeb34f10b7e95988
Merge "Use grains for deployment targets" into production