added function to return the whole result which contains the username and access_token. also added sample in the demo-server.rb file