changes to support dokucrypt plugin

There are 2 changes here.
* Resolving conflict with Linkwizard JS code (Editor Toolbar Issues)
  lib/scripts/linkwiz.js

  This solution makes almost everything work.
  The linkwizard is checking the textearea's form's pageid, but fails to
  do so, because moving the textarea out of the form is a critical part of
  the crypt's functionality

* Resolving problems with empty pages and toolbar header buttons
  lib/scripts/edit.js

  The header buttons in the editor toolbar are not working.
  Reported by Termiter.