Don't show diagnostic messages when request is simply local

This fixes the scenario when Alaveteli is behind a proxy in production

Resolves #1039
Make method name clearer
Merge remote-tracking branch 'openaustralia_github/fix-production-diagnostic-messages' into rails-3-develop