Initial refactor of .Net client

ECOSYSTEM-63

Improved serialization handling, simplified API somewhat.