added config file handling.

adds a config object and handling based on a ini file format. in
addition to the global configuration there are plugin specific sections.

splits the config pkg so that context definitions go to their own pkg.

Fixes #28.