Split form utilities out into a FormUtilsMixin.

Allows us to use them in tests without having to inherit from
AptivateEnhancedTestCase.