Fix function params extraction
Refactoring on the function's params extraction.
Some page related methods extracted to pageUtil
Fix regexes. Add buffered string concat. First fully running version.