server: simplify the store loading logic

We sort the irminsule keys into ascending key length order, this
means that we will always create parent nodes before creating
children.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>