Make the image upload path configurable.

This also constructs the entire path client-side to be used by the
application.
Fix data-attachify placement on new_draft.
Abort file upload if slug needed.