Added usage of scope in RestorableModel and misc. model factories.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>