Collapse a lot of duplicate code to prepare for new methods

Collapse the curl_setopts along with a lot of other unessesary
duplicate code. This is mainly to make expansion a lot easier. Prepping
for new methods coming soon™