cpuquiet:input: added input mediator for ordering of input events

Change-Id: I249eb1f6977d28bc81cf5ff38efdfb0d03249c03