fix parent types calculation
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.
add careplan module
add careplan form templates
add parent type and case property calucations for careplan
careplan case xml for careplan forms
rename careplan details
add requires_case_details to careplan module
use parent_select in careplan module
careplan module view