Added the state machine gem, the send request and acceptance email feature and the bidirectional friendship.