Trying to implement oauth for upload (unsuccessful). Unfinished changes: logging and oauth
implementation.