Clean up config/application.rb

Lots of misc cleanups. Notable changes:
* Refactor away as much monkeypatching of primitives as possible
* Move require statements to the units that depend on them
* Remove lots of unused plugins and small classes
Honestly, me either, until I had already edited it.