Add logic for embedding workflows.

Very basic right now but layout is selected based on embedded status and
workflow can be run either as a top level citizen as part of a portal or
within an iframe.
Add an index with embedded workflow to the test app.