refactor(main): split mozilla functions in to separate file
Merge pull request #2 from mozilla-services/split-out-moz-functions

refactor(main): split mozilla functions in to separate file