Improve layout portability

As first step, implemented "toggle by device" feature to ConfigLayouts. Portability will come in future commit...