Moved templates for widget buttons into a valid scope/context so evaluating the template outside of the ng-include doesn't throw errors. Fixes issues with IE and Safari and the Angular 1.0.0 branch. Added window.crypto hack for IE