Big changes to the emulator

Emulator now works with SmartPoint app (socket is added to the app but
isn't controllable yet)