process refactored, product refactored: rearrange the controller and service to use firebase with angular copy.