Refactored download function into a class.
Added support for persistent log-ins
  (ie, POST'ing a user auth, using cookies to maintain a session).
Made sure to close and release all acquired resources.
Implemented a pycURL callback for easier download interrupts.