Refactered the the Downstream and Upstream interfaces , 
from using subclasses to using encapsulation

Now the TreeInterface is no longer abstract and has a _flow_state member
that is a sub-class (Up or downstream) of superclass FlowState

Signed-off-by: Alexandre-Silva <aalexandre.grande@hotmail.com>