Add naive method to invalidate nscd caches when databases change

TODO: Check whether system has nscd and whether it is running.
Also unit tests.

Fixes #47 but is currently rubbish, however this might annoy someone enough that they improve my code.
I don't think I do, it's there because I copied and pasted from whatever I could find. :smile: