Clear session on invalid data.
Change pdf export doctype to html 4.01 transitional.
REST fixes.
Added menu tooltips strings.