fix and refactor(date.js) compatibility with angular 1.3
fix and refactor(date.js) compatibility with angular 1.3

This refactors the date parsing to allow it to be used in the ui-date
directive.

Breaking Change the blur event isn't fired.  This can be added back when https://github.com/angular/angular.js/pull/9808 is merged

tjwoon/ui-date,joshorvis/ui-date,angular-ui/ui-date,mauricionr/ui-date,CommandLineDesign/ui-date,sterlingw/ui-date,Recras/ui-date,sterlingw/ui-date,joshorvis/ui-date,alexanderchan/ui-date,alexanderchan/ui-date,zhaokunfay/ui-date,CommandLineDesign/ui-date,drocbuster/AngularExamples,Recras/ui-date,tjwoon/ui-date,drocbuster/AngularExamples,zhaokunfay/ui-date