check_file module

Hi Will,
here is my contribution with a check_file module.

It's strongly based on the core file module and accept similar parameters.

This is the first version, I'm still testing but couldn't find any bug for now. I will make other pull requests as I improve and fix bugs.

Allan.