Clean up UI code.

- Use `Bind` instead of `Connect`. It's recommended for wx 2.9+
- Remove AppConnector.
- Misc other unimportant changes.