added service to load pattern data from firebase RESTful APIs