Add FunctionRegistry

This will clean up some code and put our custom functions in a singular place