Restructured and generalized the loading and unloading of displays and dialogs. Also globally added killed and GetOut event handlers to close cTab displays and dialogs. Closes #39 and closes #40.