Create agent leg when call is dequeued.
Merge branch 'bug/agents_get_set_to_not_available'
Always lock agent when modifying

Add more specific state machine event for agent to change from on a call
to not available
Merge branch 'always_lock_agents'