Allow running radicale in a subdir, as well as in a subdir behind a proxy

Note: while the last commit might seem like an edge case, I think it's a valid setup.