Updated resource.py to support XML input. Implemented dcm-put