Refactor kurento-magic-mirror to work without Internet connectivity

Fixed also some minor problems related to behavior upon failures.

Change-Id: I3cd2f221631069c8eb28dd06aed97ab0a89c66c7