Fixes some bugs, both minor and semi-serious.

- Fixes undo patch size misalignment for middle click paste and drag.
- Fires caret position update when finding text.
- Fires selection update when caret updates are fired in key handlers
- Fixes an annoying tab bug due to having both a hotkey and a built-in function.
- Removes a couple unused files