Refactor qsic site using apps.
Add back SITE_ID to settings file
Add a 500 page.
Fix template error bug.