Added json content-type
Implemented PUT for file and directories