coreserver: Add timeout to sync reply polling

Signed-off-by: Michael Buesch <m@bues.ch>
coreserver: Add possible async options

Signed-off-by: Michael Buesch <m@bues.ch>