Squashing commits

added form params to the renderArgs, added template function 'firstof' to return the first non-'null' argument