Final commit before the GSoC deadline

Dir_monitoring works reasonably well for now
TODO:
1. merge changes from master
2. write the 1M file unit test (How to ensure only 1% change per sec???)
3. Add OS support
4. improve the comparisons