export ns, mode change, defines, debughtml, minor

- Fixes #121 by changing mode depending on language
- add debug option ?debughtml=html
- add namespace export option with urlparameters:
  - do=export_pdfns
  - pdfns_ns=name:space
  - pdfns_title=Test+title
  - optional:
    - pdfns_order=date (accepts: natural(default), date or pagename)
    - pdfns_depth=1 (accepts: positive numbers, default 0)
 - fix some tmp-dir defines
 - other minor stuff
should this be limited to when $conf['allowdebug'] is on?