[CORE] devemu: Remove use of typedefs and have pointer to emulator in emulated device

Signed-off-by: Anup Patel <anup@brainfault.org>