Added firebase integration, albeit a little buggy