New template lookup system + a cache system

Fixes the failing tests caused by glob breaking the mocking of the file system by using a new more advanced file system wrapper. The glob was also an overkill for the use case – this system with a cache should scale much better