Fix #159 - ignore query string for XHR to local files
Fix #157 - constructor class was re-used after being released
Make class cache non-global