fixes #1666 tracks slug changes on edit page and adjusts endpoint

@sefk 

Fixed a slightly more general issue than #1666 .  Basically, whenever the slug is getting changed, the page has to track both the "before" and "after".  It has to post to the "before" endpoint for the backend to find the proper exam, but then it has to make "after" the new "before".