emulate Power button with F2 on emulator

And code refactoring on device-specific suspend/resuming. Now the hard part of Kobo suspend logic is mostly moved into the device.lua.