Complete restructure of imu stack for modularity. Now easily includable.