Added support for per-request server root directories via X-BEM-Dir header