Support pure user-defined functions

Patch by Robert Stupp; reviewed by Tyler Hobbs for CASSANDRA-7395