Added the first round of caching, added some compile time settings, modified the start scripts.