Adding a test which check that a ServerConfigurationError is raised
when the file 'emailSettings.init' is missing in the server.

Now it fails because a ConfigParser exception is wrongly raised:
    ConfigParser.NoSectionError: No section: 'email'
that is confusing
fix: now raise SeverConfigurationError instead of ConfigParser.NoSectionError
if the email_settings.ini file is missing
removed 'os_path_exists' wrapper of os.path.exists; test rewritten
[test_server] use the 'mock' library to test the ServerConfigurationError exception in case of email settings file missing
Merge pull request #78 from iacopy/fix-no-section-email-exception

Fix no section email exception
Fixed bug in server logging.
The level of logger wasn't configured.

Signed-off-by: k4rl85 <k4rl85@hotmail.com>
Changed default setting for server console_handler logger at warning level.

Signed-off-by: k4rl85 <k4rl85@hotmail.com>
Removed default in argparse for console logger.
The default value is already configured when the console_handler is initialized.

Signed-off-by: k4rl85 <k4rl85@hotmail.com>
Removed unused import re.

Signed-off-by: k4rl85 <k4rl85@hotmail.com>
Implemented Logging in client_daemon.
Removed useless print.

Signed-off-by: k4rl85 <k4rl85@hotmail.com>
Implemented stop method in case of error during hashlib.

Signed-off-by: k4rl85 <k4rl85@hotmail.com>
Moved keyring import to non standard lib import.

Signed-off-by: k4rl85 <k4rl85@hotmail.com>
Changed all print into log message and added some logging message.
Changed import time into import datetime (this happen in enother commit).
Added argparse aguments for logging.

Signed-off-by: k4rl85 <k4rl85@hotmail.com>
Changed old connection manager logger to new implemantation of logger.
Removed useless log message.

Signed-off-by: k4rl85 <k4rl85@hotmail.com>
Managed in different way error instead of unauthorized user during login requests.

Signed-off-by: k4rl85 <k4rl85@hotmail.com>
PEP8 fix.
Fixed logger message.

Signed-off-by: k4rl85 <k4rl85@hotmail.com>