Fix the REORDER_TO_FRONT 4.4.2 problem

The problem and workaround is described in:
https://code.google.com/p/android/issues/detail?id=63570

The suggested workaround requires the REORDER_TASKS permission, so this
also included.

Signed-off-by: Kurt Aaholst <kaaholst@gmail.com>
Merge branch 'kaaholst-reorder_task_fix' into release-1.1.0

* kaaholst-reorder_task_fix:
  Fix the REORDER_TO_FRONT 4.4.2 problem