changes to enable related case tree display

- separate out property rendering stuff so it can be used there too
- pass some stuff
add jquery.timeago.js and change some property definition handling
Merge branch 'master' into case-tree
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.
rename and move customized bootstrap-tab-history.js
add inline touchforms helpers
add bootstrap-tab-hashes.js
adds malformed fixture check & edit types
delete a fixture-type through excel