Added tree support to config

Signed-off-by: Tom Wright <tom@inflatablecookie.com>
Added analytics api

Signed-off-by: Tom Wright <tom@inflatablecookie.com>