add case wrapping for pact patients
Prevent sort add link from adding new display item
Code formatting fixes
Refactor app version checking
JS style refactoring
Fix failing test
Use proper js..
Remove sort rows from the global space
Refactor sort row code moving
Move sort elements into detail model
Merge pull request #595 from dimagi/case-tree

hierarchical related cases display
More PR feedback refactoring
Merge branch 'master' into tiered-sort

Conflicts:
	corehq/apps/app_manager/models.py
Merge branch 'tiered-sort' into staging2