fairly decent resizing

(the flexing doesn't quite work right);
also rename some things, like child.$pane --> child_pane.$;
and use createElement because it's faster (not that it matters, but hey,
it's a good habbit)