x-ha-policy and heartbeat support

cleaned up my pull request to support x-ha-policy and heartbeat support.  This also changes from maven-assembly to maven-shade and upgrades the dependencies where necessary.  Thanks for taking a look at this.