Changed new directives over to user proper function declaration with code comments. Added new tree data resource, using
promise api to return the data (handy!)

--HG--
branch : 7.0.0