Allow overriding of custom Groovy functions

Groovy functions are now attached to a model.scripts object with "this"
context as the model instance.