An Architecture for M2M Enabled Social Networks