Clean up lamerequest.

- give it a clearer name.
- drop duplicate block for making http vs. https requests
- rename some variables.