runtime: Implement node/edge/iip removal

Also checks for runtime errors in graph build/run tests.
Refs #4
runtime: Replace fprint with g_print/g_printerr