Added support for multiple top-level widgets

On the same page.
Added a test file

And updated a test file template.
Fixed backup problems with multiple top-levels