Add performance tools, fix N+1 problems, add loading image, put template info into session
Add Comments for ibm_mode