Bugs 289, 290, 291: Added IP error messages

This fix formats code and adds error messages for various unhelpful IP
address errors that can occur on the server side. It also fixes an
uncaught bug where spaces were being added to eWallet directory names.