Fixed logging
Sanitize inputs better

- Expand cache paths
- Validate URLs
Added proxy cache to integration test