Added cacheUsers and changes to getting auth

Related issues: #28 #34