Flux Layout - refactor and add $minify

Cleanup core layout building functions and introduce/deploy $minify - just defines new lines (or empty) to minify output.