Refactor and make configurable bingleResolved.py

This is in preparation for integration with bingle.py.
Turns crucial logic into functions and also makes various fields for
BZ/Mingle configurable.
Integrates bingleResolved functionality with bingle

This makes it possible to fire bingleResolved functionality when running
bingle, with the -r flag.

One very significant change is the introduction of config.py, which
manages global configuration variables across multiple modules
(currently bingle and bingleResolved).

Resolves issue #21