Extract reading environ information to function

This will allow users using prepared requests to apply the environment
variables themselves before calling send.

Closes #1436