allow any form to contribute case properties

Move case type checking to form. Mostly for the sake of
careplan forms which have a different case type from their
module.
Merge pull request #1852 from dimagi/get-properties

allow any form to contribute case properties