Add support for dynamic templates for popover

This allows users to use a dynamically binded template in the popover, instead of just static HTML.

Here's a jsFiddle: http://jsfiddle.net/zongweil/42mFj/1/

This resolves #8.