Bug 1042048 - Allow resetting Find My Device's state from the test app.

Given how iffy this code is getting, I think making use of nested switch/case statement would greatly improve readbility.