Move main loop

Hi,

I wrote you a short mail, but now I am factually done with all the changes. I've been communicating with @lzap over the whole changes, and I hope you like them.

The gem is installable on rubies 1.9.3 and 2.0.0 and runs very well for my setup (200-400 files per project).

I hope I did incorporate all the changes, it should be also clean to merge. If you don't like parts, the topic branches should help you to back out things. Everything has been merged up to this branch.

Cheers,

tony