Added emulator unlock functionality

@smiklosovic @kpiwko I've added some functionality which unlocks the emulator.