Added pox server test
Introduced FSM to get resources in discovery circuit