1) added timeouts to TestNetGroupCache;
2) added license header;
3) Rewritten implementation of NetgroupCache: looks like now we have correct and efficient implementation.