Toggle whole section method.

I required the ability to toggle a whole section on and off programatically.
Added utility method to also get the visibility state of any section.
Also found that when using toggleSection or setSectionVisibility programatically the fold button state did not change accordingly.