avocado: Move avocado.conf.settings -> avocado.settings

Let's simplify the program namespace. No need to add
nesting for this particular lib.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
avocado.settings: Implement the Settings class

In order to read and retrieve values from the avocado
settings file, which can be in:

* Source tree: /etc/settings.ini (quick testing)
* ~/.config/avocado/settings.ini
* /etc/avocado/settings.ini

Implement a settings class, that can be used
in other avocado programs.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
avocado.core.data_dir: Use settings module

Use the settings module to find out where to locate
resources on a system-wide install.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
setup.py: Install test modules and config file

Another step in making avocado to run system wide
(and provide distro packages).

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
settings: Put logs directory in user directory

Instead of writing to a location we can't write to
when running as a regular user, refer to a user
specific path, and use os.path.expanduser to handle
the references to ~.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
setup.py: Also install synctest

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #8 from lmr/settings

Settings