Yet another major refactoring! Now we can do sensor updates
asynchronously, outside the realtime thread.