Add a command for running commands on master election.

elect-run-command is a tool which participates in master elections and
will run specified commands with the MASTER= environment variable set
when the service is elected as master.