Adds cascade constraints to 'priorizacion'

It also fixes tests, and test-data after introduce 'cod_comunidad' in
'comunidades_implicadas' table
The form to introduce de data of an alternative is now, again, called
in the same way that the other forms ('comunidades', 'alt_tuberias', ...
Use the same isEnable isVisible conditions for TOC open form entry and
for the toolbar/menu extension