Updates cpp-netlib.
Refactors code.
Updates sample to use HTTPS.