proper file name in error message
better messages, remove duplicated code. Fixed #1202 #1203
previous commit also makes one more step for #1168 Use cmsweb-testned, accessible from everywhere