[TAV-373] Do not assume default layout is "application".

Some portals using Player will have a different default so use whatever that is
rather than hard-coding "application".

Finn got us most of the way through with this bug but the virtual_path method is
needed for tests to work correctly.