Made popover-template directive compatible with AngularJS 1.0.8

Removed jQuery dependency
Accepts external file template