CRM-15713 - Case ajax fixes

I'm drafting an extra change.