Fixed unsafe errors and brought some of the template code up to date
with the newest version of angular.
Fixed infdig error with Angular code by removing filters that caused
infinite loops for unknown reasons.