Fix Redirect URI Error and gist Demo

1. RStudio seems to scramble httpdPort, which leads to varying callbackURLs leading to errors. This commit fixes the callback url so that it is always http://localhost:1410.
2. The gist demo is outdated. I have added a commit updating the examples.