move container stuff out of sw::Ring<>

Change-Id: Idf72c16318735d6b3ef7f421aceacc225a7697bf
move size() into the container too

Change-Id: I22ee641e7d07fa7c0cae7a4b36ce61dbed62b31f
fdo#86929: Kill FOREACHPAM_START for good

Change-Id: Ibaff13e84f186616259ba9bbf9224bbe2d30c5d6