Hoverdialog

Fixes issue #14 (again untested beyond a little fiddling in firebug to see if this does what I think it does). Note that the first commit should also fix the tooltip always appearing above the mouse cursor rather than what was intended.