Initialize scope variables using a Port instead of raw callback to the backend.
Separate lobby service (port) to a new file.