Toward Pervasive Platforms Programming: A Bio-Inspired, Agent-Based Framework and its Application to Pervasive Platforms Programming