Refactoring. Cleaning up profiling messages. Modifying ajax error messages