Allow rpc actions through socket.io and update device attribute on device add