xml improvements

improve xml error reporting and handling
don't output nulls in error
fix bug
fix bug
fixes
fix crash
dammit
fixes
again.
get it working
update scripts
fix scripts
working on build scripts
fixes
restore first responder problems in login panel
fix build issue