started integration with firebase

About to refactor contribute.js