revert to angular 1.2.x + other fixes missed in previous PRs
Merge pull request #712 from caskdata/feature/ngui-provider-fix3

revert to angular 1.2.x + other fixes missed in previous PRs