Add FormDefinition.post_submit method

Allows (proxy) subclasses of FormDefinition to define additional
functionality to perform when forms are submitted.