Added javadoc. Moved oauth code into github util.