Moved oauth to external libraries