Refactor code of select/unselect portal. Add hook 'portalSeleted'.

The hook is for Plugin Draw Resonator. Use to highlight resonators of selected portal. 

And modify Plugin Bookmark to accommodate with the refactoring.