Implement tiered sorting for case details

Add the functionality for tiered sorting to apps on version 2.2 or
greater.
Implement default sort option
Restrict sort xml lines to case_short properties
Refactor sort item naming
Sort order property is now 1 indexed
Fix issue with tiered sort renamings
Rename sort property types
Merge branch 'master' into tiered-sort

Conflicts:
	corehq/apps/app_manager/views.py
Fix missed renaming

Left a stray sort_properties reference behind
Merge branch 'master' into tiered-sort
Force order for case detail elements in xml
Fix special format options.

Previous commits broke the ability for some format selections (ex: ID
mapping) to display the extra options field.
Enable tired sort for items that aren't displayed
Fix failing app_manager tests
Dragging sort properties should enable save button
Add help text and labels for property types
Prevent sort add link from adding new display item
Code formatting fixes
Refactor app version checking
JS style refactoring