Add support for bulk-edit dependencies

For dependencies defined like 'master', 'slave' it makes also dependencies between
'id_form-X-master' and 'id_form-X-slave' ('.*-master' and slave which has the same prefix).