Source state of a layer doesn't depend on group

With this PR the source states of layers no longer depends on theirs groups. This fixes a major bug where as soon as one layer of a group was ready then all the other layers of that group were considered ready as well.