OK, I've created a repo on github (
http://github.com/erayd/flag), and am currently writing a basic OO skeleton for it - this will be uploaded either today or tomorrow, and then provided you're all happy with it we can start merging stuff.
Aleyx - you wanted to refactor the existing code into OO - feel free - but please hold fire until I've uploaded the skeleton; that way we can make sure nobody's duplicating work.
Re logging - I'll add this as part of the base, it makes more sense to be using the same thing from the start rather than trying to achieve the same thing in several different ways. Ditto for config.