core: added z_proc, an interface to register processes via gproc