Add interface class for form contexts.

Having an interface will make type checks simpler, and make it clear
to userland extensions what methods are required.
Fix isCreate()

It was backwards.