put ajax request type, error, and part of the URL in the error message

At the moment all ajax errors end up as "Script error" in the dashboard.

Attempt to improve this by adding the request type (GET, POST etc.), error ("Permission Denied", ...), and part of the requested url into the message.

Not sure about adding the first part of the URL, works well for our case but it might not be useful generally.