Rails 4 fixes

Cool library I found via http://stackoverflow.com/a/11532571/18706.

I made this work (not crash) for Rails 4, though it still doesn't work as expected as most output (logs from my app and Rails still aren't being filtered).