Update layout.py

Make it possible to add a `context` parameter to the panel directive, which makes that the panel will use another context. Ie Panel('format', context=context.date) which will lookup the format panel for dates.