added codemirror js to edit_email text_area to style and number the code
fixed prawn table issue that caused crashing, refactored reports#results_sum and refactored reports class methods