Complete refactor of quick-edit.js: don't rely on DOM state to figure out what to do, rely on Drupal.edit events only.

Also:
- Adds documentation.
- Enables strict mode.
- Cleaned up quick_edit_navbar().
- Made the JS feature-complete — AFAICT.