add some extra testing makefiles
consolidate some string filtering code; remove some dead code; start handling directives and null context function calls