Read/write to Firebase working

Needs refactoring, but it's working.