Use username and password for proxied requests

Partial fix for #97. Uses username and password from configuration for proxied render requests, if available.
Merge pull request #118 from englishm/proxy_auth

I didn't test this, and doesn't look like a complete solution (who uses the proxy feature.. would only fix the proxy feature), but looks good otherwise, so merging it.