Doctoral Consortium: A Theoretical Framework For Self-Organized Task Allocation in Large Swarms