Shift state and Settings Tab

Add shift state and a settings tab for testing.

See commit comments.