Reimplement serializetion

Library can serialize whole response from mastermind, not only known
parameters