feat(validate): Added support for promises

Merged from angular-ui/angular-ui#426