Race condition for federation

At present to determine of a remote node is cached we check to see if we have items stored locally.

If the items are stored before we have node config then we do not head off and retrieve node config. This should fix that.

There's also some JDBCNodeStore refactoring from working on #111