traffic: promote Traffic structure to stand-alone class
traffic: add directional constants to Traffic class