Update version to 0.5.2
Add new_revision option
Fix #39

* Truncate file locally and mark it ToUpload
* Use new_revision option
Update documentation