Refactoring header map, login path, curl handle.
Fixing accidental removal of curl initialization.
Removed mutex as well as curl global init as it is already present in fserv.cpp.