template-onboarding: refactoring firebase related code.
template-onboarding: storing sample tasks and events on firebase.