Moved code to process framework (tests are still in core yet)

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>