More work on OS X support.

- Fixes for build and packaging.
- Fix window titles
- Fix copying items between tabs
- Fix deleting items with Backspace
- Fix Shift-{Up,Down}
- Fix tests - they all pass now!