[server] Allow setting thread pool size.

There are 2 thread pools, one for RPC, one for sync processors.

Config options:
[thread pool size]
rpc = 50
sync = 50