added tabs, loops on waits, and saving the UI Session

UI Session save is not complete yet due to other parts of the program
need to be finished first.  Tabs have nothing in them, Locks.wait now
has while conditions in case of spurious wakeups