merged changes from wizkid057

*Change type of StratumProxyService.registered_tails to set
*Support up to 65536 workers