Fixing some things, adding some comments based on Michaels suggestions.
Adding makefile changes to compile the curl plugin with CC instead of CXX (thanks Michael!)
Adding user facing version of openurl(), also added openreader() and openwriter()