Changing permalink from tooltip to popover

Initial stab at #347.