Make the layouts directory configurable

We should have had this. Now we do.

Unless someone has an opposition, it'll be merged tonight/tomorrow.