Add general way to add processing functions to the editors

Issue edina/fieldtrip-cobweb-project#27