Add aura/sql and minor fixes

The $layout can be set from the view.