cbu

Cleaned up code: better organized, setup globals correctly. Ready for
control manipulation. Must pen-and-paper program's flow/session
lifecycle algorithm.