use bootstrap code from krlmlr/R-Travis

- fixes #3: Split bootstrap into bootstrap_r and bootstrap_devtools
- fixes #16: don't use sudo everywhere
- use multiline Here documents for R scripts