Lessons Learned in Building Pervasive Platforms