permission fixes and other test fixes
fixes testsuite
cleanup
fix mysql datetime fuck up
Merge pull request #1705 from digi604/perm-fix

Fixed that pages not with view perm are not anymore displayed in menu