Wiring together completed

Wired things together. Did a bunch of  bug fixing. Got a basic demo to
work. One phone disconnected from mobile data and wifi is able to get
file through the distributed cache. Needs more testing, because other
cases probably have some bugs.