Function support

Added support for runtime script execution on materials. Also added
operation precedence for wooscript.