Clean URLs before passing to GSB server

Encode chars in URLs. Remove leading underscores. These cause
exceptions in GSB server Python code.
Eliminate some PHP "undefined index" errors. Fix error in reporting of
new files.
Merge branch 'development'