Code fixes, less hooks, better code...

- Use SBWorkspaceEventQueue instead of hooking unnecessarily SBWorkspace.
- Use %c() instead of objc_getClass().