Highly optimised Angular JS directive that creates tree of checkboxes.