Flip to mute/dismiss call

This patch is based on http://review.cyanogenmod.org/#/c/29894/11
to provide easy mute and dismiss functionality for the phone application.

Available actions:

0: no action
1: mute ringer
2: dismiss call

Patch Set 14: move attachListeners() to a better place to ensure
that it actually gets called.
Patch Set 15: corrected styling issues
Patch Set 16: further corrections

Change-Id: I1895a1ce985a2f393ea890fd13531310af611498