Prettier modal with useful information for POST success/error

Show some actually useful information if a POST request fails. Highlights the
most common problem: user does not allow cross-domain requests.

refs #540