Added State Machine

Added states for friendship : pending, requested, accepted