fix deprecation warnings for reports controller, remove monkey patch for html_safe which was fixed in rails 3.2, fix CSV export in reports controller when in development mode