IMGUI logic with a basic set of controls

Implemented a simple immediate-mode GUI with support for keyboard and
mouse input, as well as basic widgets and scrolling.