General code cleanup

This still needs more work but it's a step forward in the right Python-like direction.
I didn't test too much setup.py script changes but I'm planning to Debianize that stuff
at some point. The PR here is just so that the code doesn't diverge too much.

PS: Original repo name probably needs a better name.

-Srdjan
sgnn7@sgnn7.org
I don't know very much about logging in Python, but I have the feeling that this approach is not how it's meant to be. I think the idea is to have multple logging.loggers, not one singleton instance. Am I missing anything here?