Add handler to receive PUT.
Fix update action to save changes to file.