coreserver: Add memory reading/writing

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