Overthinking it. The internet is great because it is as simple as a bunch of computers talking via socket connections. Do that but with encryption. Let everything else grow the way it wants to.
This sounds like a framework. Not a good idea. You'll eventually find something that the framework cannot support, but you've over thought everything, so adding that is next to impossible, so time for a rewrite.
This sounds like a framework. Not a good idea. You'll eventually find something that the framework cannot support, but you've over thought everything, so adding that is next to impossible, so time for a rewrite.