Added template middle framework and created added hooks to two templates. #138
Preload user model extensions if configured to do so. #138