WIP: refactor asset loading logic in page-svg, page-text, page, etc; add lots of tests (still not passing all tests)