Use our own crypto source from Mono to avoid dep.

Now builds in .NET
More DB stuff -- Structure serialzation