Double Management and Entity Select optimizations

Updates to the entity select process allowing for "Actions" (in the form of stack frames) to be executed.

NOTE - The "other" commits are actually commits that are part of CommCare trunk, they are currently only tracked as individual commits on the 2.13 branch due to an artifact of the migration process. 

The "Files changed" is the most accurate way to review the PR.