Switch container detail view to use profile selector directive, add included/excluded properties for profile selector directive and fix #386