reimplementing restoreFile functionality
Merge branch 'backbone' of github.com:prose/prose into backbone