click on r code to edit

closes #269
reapply our hacks for R completion to new ace source

fixes #352

reapplies the changes in commits 4b0cf87b502cd, 58186b1817, c7d7c295c36
update bluebird
detect whether there really is a scratchpad

fixed #393
keep trying less recent notebooks if they can't be found

resort to new notebook if none found

fixes #235
save whole notebook when updating anything

put rename through (shell and) controller
rename refresh_cells -> refresh_buffers
refresh_buffers when doing anything in controller, and concat
clear dirty bit and icon in default callback

fixes #261
move notebook scrollbars to inside

fixes #365
also fixes #330 autoscroll for sorting
Merge branch 'develop' into feature/search

Conflicts:
	htdocs/js/rcloud_bundle.min.js