[Device] implement sm_device_add_user API
[Device] implement sm_device_remove_user API
[Device] implement sm_device_reset_default API
[Refactor] implement internal function 'sm_http_perform' and reduce the code