UI backend stuff initial completion.
Phase 1 progress ~60%
Todo UI drawing and code cleanup.