Added cacheUsers and changes to getting auth

Related issues: #28 #34
Fix #33