Import rstudio api.
Closes #458
Merge branch 'master' into 466-github-api