fixed tests that still checked for '.rjs' template
don't escape JSON in entities/index
added some html_safe to for mailer/page_history templates