Fixed bug (too many GNU messages), added console logs for debugging XHR issue

The XHR calls seem to halt after 50 to 60 calls. Still need to find out
why this happens.