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