Create bookmarks when loading from pre-compiled questions too.

There was an inconsistency between model instantiation from yaml, and from js.
This code it now shared between runtime and build time so bugs like this are
no longer possible.