Added verisioning support

I had to remove the permission setting on file write as I was getting an error from amazon. Other than that, it works fine. New method to get file versions, and choose file version as well.