Fix 160
Add explicit cascade for deleting orphans
Revert the logic for form processor, where module is loaded from db before processing
instead of after. This allows deletion of parameters and other artefacts.