Added test moving sequence and start of idle frame removal.

1. Added flag-controller thread for a test move sequence.
2. Exit the main loop when moving stops.
3. Allow removing the most recent frame and its observation sif it's
not a keyframe.
4. Add routine to remove most recent two frames if they're in the same
position as the previous two.