New interface Processor, start to implement and test ref resolving

Loops are already tested as being detected, at least in a limited fashion.

Signed-off-by: Francis Galiegue <fgaliegue@gmail.com>