Update page_editor to Take Errors from Header

Update the page_editor JavaScript to allow parsing/outputting errors
from the response header (allows for flash-like error responses to be
displayed to the user).