Added getIsUsingAuthentication
Refactoring & building authentication headers
Changed header building to add pass-by-ref for curl values & Added _buildCacheHeader