[CHG] replace [Add] button in m2m lists by link in row, similar to o2m

Task 4941

Extracted relevant section from One2ManyList which already implemented
it previously, then created and hooked in m2m list using (inheriting
from) extracted code.