Basic cleanup

* Add Rstudio project
* Move R files in to R/ 
* Ensure all R files can be sourced cleanly:
   * Don't use `rm(...)`
   * Paths should be relative to project root