added <div> for large tables to enable horizontal scrolling in templates like the new defaulttemplate

the main Fix is the 3rd commit and as I don't know much about dokuwikis internals, it may not be correct. At least it works for me.
First and second commit are only small things which annoyed me, and which should be without any side effects.