Refactor pool functions into a new module

udp_driver won't be the only module requesting pool services..
Refactor pool functions into a new module
Initial state refactoring

I'm making my mind about having multiple pool servers for different
pool types or just a very smart pool server...