Requests instead of wget

This merge uses requests instead of wget as well as implements a few bug fixes and better logging.
It also fixes #4.