Add option for using categories of contacts as groups + small improvements

Some clients use categories as groups. this options allows to use in the groups in the same way