Random trees and general branching processes