1. moved all urls to shared/urls.js;
2. added handler for ECONNREFUSED error for server;
3. still don't know what caused the occasional H17 error: Poorly formatted HTTP response