Move secret_key_base into secrets.
Remove config nonsense to consolidate secret loading in config/application.rb
Fix older style AR syntax blowing up document viewing.