added initial load of data cache
made data cache loading the product of a self-executing function
moved common request configuration to a library