Query/github org

close #16
This patch defines also utilities function to build the authentication query, so that it should be easier to add additional queries in the future. 
The code may look a bit convoluted, but it is due to the fact that subsequent queries must be able to use results of previous queries to build the query url.