Add UDF definitions to instance adjuncts cache

This integrates the UDF cache with the instance "adjuncts" cache, which means that changes to UDF definitions will be recognized on all servers.

Fixes #1364
squash perm