Content distribution

Support content distribution, a little WIP still