Fix up sockets and tests to use xType for validation. Also change model.destroy(id) to model.destroy({id: id}).