Better handling of file upload, including check in and publishing

Improvements to file upload:

* Better handling of check out / check in / publish / approve
* Handling of check out when properties only change
* Better logging when only properties change
* Specific handling for PublishingAssociatedContentType property (currently only text manipulation)

Also clean up some commented out code.