Layout generation from base, toggled by a configuration parameter.
Extracted protected method
default app layout
Default false for new funtionality
Test for setting application layouts.
Layout creation triggered from controller.

Added before_action to controller, before layout check.
Exposed self method as public (was protected).
removed debug message
Merge: choose_application_layouyts