Adds raw sensor API for distinguishing acceleration from rotation. Part 3 of #835.