Exception handling in function templates

Add errors as part of function template annotation

Dynamically determine return type of function based on whether session parameter "STOP_ON_ERROR" is set
 - Use GlobalFunctionRegistry and internal use multiple FunctionImplementationRegistry

Abstract common logic in DrillBaseErrFuncHolder