coreserver: Add support for instruction states

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