Router: Better XML marshalling and BLEBeacon configuration.