Two-dimensional relative rotation is almost ready. Adding blender-specific actions. And only when I was writing python class for converting accelerometer data into rotations I realised that for full 3d rotations we need compass or two highly accurate accelerometers...