Restructured code

git-svn-id: http://svn.code.sf.net/p/mrbs/code/mrbs/trunk@2930 25f7e783-145e-4f2d-a9f8-dd7182bfe9c7
Fixed bug causing resizing performance to get worse and worse the longer the browser has been open (a new resize listener was being created every time there was a table refresh).

git-svn-id: http://svn.code.sf.net/p/mrbs/code/mrbs/trunk@2931 25f7e783-145e-4f2d-a9f8-dd7182bfe9c7