Separate syntax assisted and simple markdown folding functions.

Plus some minor cleanup.
folding: general cleanup, reorganization, initial work for foldtext
basic functionality for foldtext.
fold divs with specified classes

TODO: make it configurable.

fixes issue #18 partially.
simplified atx and textile headers folding rules
some cleanup