The Bonsai tree based model toolkit: node and tree structures, likelihood scoring, an optimizer, point sets, layout and the Bonsai API.