Real-time coding spree: Firebase service and factory with 3-way binding, tighter control of user actions, implemented 'state machine' for tracking active quiz, opened question and active users