Adding tests and more implementation details (including connection management that's useful for testing) for autoproxy data-dir-based rules.