speed up loading form view up to 10x

by memoizing a few functions used to collect case property suggestions

My example went from 22 seconds to about 2. It was calling get_questions
800 times in the process. Now it's called once per form.
Merge pull request #3998 from dimagi/case-list-duplicates

speed up loading form view up to 10x