Firebase onsnapshot example. Set a listener to receive data-change events.