Add some common interface/traits.

Signed-off-by: crynobone <crynobone@gmail.com>