client: move FSM state generator to common place

Instead of ifup.c it should be provided by common client
header file as a static inline routine.
Merge pull request #236 from pwieczorkiewicz/ifup_state_gen