Changed sidebar events

events are now fired in sidebar object, not on map object. There are three events: show (on sidebar shown), hide (on sidebar hidden any way)  and close(on sidebar closed by clicking closeButton).