add finite state framework
change loop condition to atomic type
add packet packers and sender in packet.c
modify framework
make minor changes in packet.c and fsm_server.c
add send_rrq to client.c, change handling of mode in pack_rrq