Funny, I was just thinking this afternoon that I wished FireChat's code was open source, and was poking around to see if anybody else was tackling the "chat offline with your phones" problem, especially if anybody was playing with turning phones into "network repeaters" for however messages are being relayed.
Turns out it's much more sparse than I thought. A couple people playing with brutal bluetooth only solutions. I feel like there's a lot of possibility here, and it's probably good to explore now rather than when we really, really, need it :P