Added RecordPoseTask; refactored CV and GL loop to simplify Main.run(); introduced timing variables in Context.