Clean up locale stuff

We don't need a locale config setting anymore, so nix that.
Bunch of cleanup

* removed dead code
* removed commented out code
* cleaned up the debug renderer