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
Turns out that block of code has been commented since 2008, so I just killed it. :)