Added basic execution loop to main class.

The loop is infinite now, but event handling will be added later to
allow the user to exit by means other than clicking the close button.