Allow localhost as a valid email domain

The validation that was added for email addresses did not allow localhost
and that broke the smoke test. We don't know exactly how monasca will
be configured so allowing localhost seems reasonable

Fix some of the tests that had code that made them harder to read but
didn't add anything

Change-Id: I7249443ebbeff5156639d0c55032863e6c271233