Add functionality needed for an IDE.

* Add function to retrieve text from a TextBox.
* Let the WindowManager run code from a string, much like how it
currently runs app code from a file.