Redmine#4076: improve acceptance test for countlinesmatching()
Use CfReadLine instead of getline for countlinesmatching

To prevent having to match newline. Close #4076
Allow slists to be passed to mergedata(). Fixed from Ted.

Close #3279
Set cf-promises --eval-functions to 'yes' by default.

Close #3855. This effectively preserves the behavior from previous versions
by default.
datastate() function to provide the container used by default templates