Fixed tenant_id and device_id filtering

Changes made after the network sharing busted tenant_id based filtering.
Also noticed that the model_query call was making an explicit filtering
choice on Ports for device_id, so that particular filter was moved into
the port_find method.