- Update user activity power management to use IOKit.
- Use NSApplication to set focus.