Replaced custom GET with RCurl getURI
Factored out new_session code
Removed old custom HTTP code
getSession