implement two-way binding if the checkbox has an ng-model attribute

If there is an `hg-model` attribute on the checkbox the directive will now watch for changes and trigger a state change on the switch.