Skeleton for Tree.Decode and Tree.Encode

Signed-off-by: Solomon Hykes <solomon@docker.com>