Asynchronous sensor applet interactions

These are the changes necessary to have all communications with the sensor applet be asynchronous.

This is to work around a behavior of IE 10 where any calls to the applet that don't return in a certain amount of time will hand flow back to javascript.