fixed bugs in rest, update item:
1) empty metadata list will not be in JSON Response
2) local path to uploda file will not be in JSON Response
save upload temp file into the CommonUtils.JAVAX_SERVLET_CONTEXT_TEMPDIR dir (under server context)