Code from a Boston meetup "Lukas Ruebbelke: The AngularJS + Firebase + PhoneGap Love Triangle"