added ability to un/bind popups for image map layers

refactored most of popup related functions to RasterLayer