Migrate popovers to requirejs module

Instead of popovers just being functions in a js
file, make them a formal AMD module.  The reason
for this is that popovers require bootstrap to
be loaded before they can execute.  Hopefully this
will solve some of the weirdities I've been seeing.