In clash of clans, how are attackable resources distributed between buildings? 2016 Edition

Solution 1:

Your townhall simply acts like another storage. Distribution of loot among storages happen like this. However much of a resource you have is evenly distributed among your storages of that type. If one of your storages holds less than the rest, once it is full, the amount that would be put into it if it were to be able to hold more is instead evenly distributed among the remaining storages. The only thing that changed is that townhall's can hold more resources. Storage for each collector is independent of each other, and is based on how much it has produced since it was last collected from.