Added caching to auth server.
Refactoring of cache.
Some additional functions for parameter fetching.
Refactored for the new cache and parameter utilities.
ReturnUrl for auth is added.