This doesn't change any functionality; it's just cleaning up code. Notably, this will:
- Fix all warnings (notably lots of ones about type casting)
- Move all .ui files to their own directory
- Remove unused variables
- Remove commented-out code
- Make spacing and indentation consistent
- Make brace style consistent