Fixing display issues

see #166. Refactoring of JS scripts for the roundcube frame. Still not
removing header rows in rc 0.7