device state push/pop, async autofocus
Minor fixes for putting untested code to use.