CLC-1896 - Limit the scope of the popoverDirective

https://jira.media.berkeley.edu/jira/browse/CLC-1896

Now we only bind to the $document when it's absolutely necessary.