Prefixes inserted in correct container

Fixes a bug which caused prefixes to be placed in wrong containers in
the web UI when indent level decreased.

Also fixes another bug which caused data to fetched in the last "next
page"-operation to not be displayed in the prefix list.

Fixes #363
Merge branch 'fix_collapse_container'