Fixes #1410. Also, allow renaming of files.

* Renaming of files is based on the renaming folder function in
  bolt.js and Async.php.
* Display the current filename / foldername in prompt window.
Fix place on stack and set buttons to default instead of tertiary.
Now truly fixes #1409. Previous fix broke the mobile version.