add Call model
make Checkbox and legacy date types parsable from postrgres json
fix case type according to pg types
add permission check utilitys
fix service according to pg types
fix legacy dates json rendering
fix call's table name
change search stuff types a little
fix types according to tables
fix call fied names and add search params
fix search calls by phonec
Merge branch 'search'
Merge branch 'master' into vinnie

Conflicts:
	src/Carma/Model/Case/Type.hs
	src/Carma/Model/Types.hs
	src/Data/Model/Patch.hs