Added ng-messages support (since AngularJS 1.3)
Fix for setting form to its pristane state. End of file line fix