Added rest api and oauth authentication using github oAuth2 protocol