add option to define custom template
Merge pull request #4 from christopherbahr/master

Allow template in addition to templateUrl