Mike, you deserve a gold star for that one my friend. That was painful to watch, much better you than I on that messy catastrophe! God bless I wouldn't wish that one on my worst enemy! :-P
I can only assume that a good many in your pic are on the outside of the hive because its quite messy on the interior of the hive. If its a real mess they are likely to abscond.
If its one big mess inside you would do better to set them up in another hive body and transfer what clean brood comb sections you have framed into another set up along with the queen and let them rob out the messy hive pictured.
...JP