Setup basic logging. Make the cache dir configurable.