AngularJS directive that will validate an IP address and impose relevant character and structure limits