Revert back to angularjs 1.2 to fix UI issues - v7
Fix group/template duplicate name problem and misc. cleanup