Connect, re-connect and read messages from the MNCC socket. Dispatch the event in case the system got disconnected. Move the app definition to app.h and use it everywhere. Begin with a new call for mncc.