Fixed some style things
Fix variables in Detail
Refactor build_detail
Merge branch 'case-detail-tabs' into double-management+custom-case-list-pane+case-detail-tabs

Conflicts:
	corehq/apps/app_manager/suite_xml.py