Implement custom function support
test custom functions
php5.2-compatible tests
Merge pull request #115 from nyordanov/custom-function

Implement support for custom functions