Added support for scripts and css in view files even if they use a layout. Also added directories need for build.