Added cookie caching and tests for hasSession
Removed singleton from util and log modules