Multiple fixes for production.

Deferred javascript loading for predefined controllers.
Updated/fixed multiple views.
Updated SQL-based cache model and engine.