Allow IO in the site mapping function.

This is specifically to check for the validity of a request, e.g. whether a file exists.
Merge pull request #2 from nh2/site-mapping-io

Thanks