coreserver: Handle BlockingIOError

Signed-off-by: Michael Buesch <m@bues.ch>
Port GUI to coreserver-API

Signed-off-by: Michael Buesch <m@bues.ch>
gui: Handle server messages with timeout

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