Multi-graph auto-discovery: add periodic refresh.

Also split static spring configuration and auto-discover mode in two classes.
Use a common class which encapsulate common file-related functionalities.