more refactoring using sequence

sequence actions over the FSM state, and mockup pool functions needed
to interact with pool servers
Some refactorings..

most functions will be wiped away now we have a clean idea of services
needed, yet some code its needed so we clean up before making final
changes.