Use a mutex to synchronize the guest access (deadlocks seem to happen otherwise). Fixes #8.
Automatically detect the current site. Fixes #14.