Removing use of runloop from audio system.
Refactoring window stuff. Still needs some work.