Refactored config to apply env event if its set.
Resolved layout issues
default error page in boilerplates.
Added 500 error page default.