small change: api.wrap_json_api, add content_type
add a new api for uploading device data