Move api demo to use Firebase instead of file logging for realtime updates.