Added multi-tenant functionality

Added multi-tenant search, changed logic for instances filtration, added tenant_id cli arg, changed filter field in configs.