Port of explicit subdomains

I haven't gotten this entirely working yet (it's giving me a weird ENOENT error, and the tests seem to hang forever), but I'm pretty sure this is the right general approach.