Added SQL reconnect support. Re-factored 'server' vs 'local' mode into SpiderConfig.h file. App configuration file would be better, in the future. Added logging support to CIIASimilarityCache, changed SQL to use atoi on depth rather than atol, hopefully fixes depth issue. Testing on server.