JBIDE-17911 Make "full tree" vs. "funtions and macro defs." configurable

for Freemarker outline plus some refactoring to avoid usage of
deprecated Prefence APIs.
This is fixed in a commit related to JBIDE-11287 that I hope to submit soon.