Use inotify events for logparser plugin

Closes #78
@ppp0 @kris-lab please review

The logic is highly influences by `tailf`'s [watch_file_inotify](https://github.com/karelzak/util-linux/blob/master/text-utils/tailf.c#L147).