Add support for user-defined functions.
Add initial use of NSProgress to query evaluation.