Organize code, update base58 serializer tests.