Possible refactoring of code to work with Typhoeus 0.5. WIP.