Fixed serious layout bugs: Copy all layouts in directory style.
New template variable %LAYOUT% that is a link to the current layout data
Fixed bug: no exception if hidden or sorted are not defined