add and remove background-map class to map_box when map enters/leaves background. Fixes #64
move cancelling of offline locate click default up to the view the event
is for rather because locator.locate usually doesn't get an event and
it's silly to put a guard clause there