Optimizes Options window

- Also fixes ANTP-74
- Various other fixes
- Introduces new preference utility class