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.
My thinking was that it is nice to know what a component is and isn't doing.