Register all user defined functions

A fancy way to do that.

Still needs to test. And maybe remove **twig_** and **_twig** functions once these are inside get_defined_functions array (the user array).