Moved some UI-specific stuff into the UI include directory. Added text_widget.