merged grid.js and cell.js, made event.js, minor cleanup, added paneThickness global var
restructured render loop to work with events
fixed placement overriding bug