fixes #407

api changes
implementing curl timeouts default 500ms
curl opt NOSIGNAL
added api debugging

added config directives
+ $apitimeout = 500; // milliseconds to curl and fopen timeouts
+ $debugApi = false; // output debugging info to debugLog
+ $nocache  = false; // do not use cache
+ $nocurl   = false; // do not use curl

changed static urls to config

added fopen check to avoid some errors when not available as fallback
added github link to support