Make "map" a property of ol.control.Control
Update the custom-controls example

Update the custom-controls example to show how to custom controls can be notified (and take action) when the control is added to, and removed from, the map.