refactored the PUT and POST code and support for PUT files added
added test for updating files
fixed problem with the test server,,