Refactoring: move SetEncoder to opennode-management and rename to JsonSetEncoder (STOX-10)

+ fix key management classes not to choke when a known HN is not available
Minor refactoring (STOX-10)
Merge pull request #112 from opennode/stox-10

Changes necessary to make KNOT in sync with OMS refactoring