add accelerometer event. add a config file to enable/disable listening for that event.
clean up the lantern init/stop lifecycle
events for gain/lose focus