register the dependence angularjs modules and firebase lib.