Debug panel scaling

Alright so i fixed the infinite loop i believe for #414. I also added a bit of a hack in to position things better depending on viewport size. It wont cater to all screen sizes that well, but it's readable at least.

Weird thing is, in the 1.1.0-dev version, the used heap would be a fairly large number, and you would see the memory graph fill up, that's no longer the case. However, doing a profile in chrome with the changes i made and without shows little difference in memory usage. So I'm not sure what's going on there. @parasyte you know this stuff far better than I do :)