fixes #1966 - improved UI errors for proxy

Improved error reporting on all generic proxy errors plus improved TFTP IP
address determination code (was throwing undefined method `ip' for
nil:NilClass).