Add version and active flags to series

Once this has been merged I'll rewrite the serialization tests in a way similar to https://github.com/monetas/btcwallet/pull/50
Reviewing the rest of the code it is in fact in use in the way that it is being serialized. Maybe we want to add that it's not used by the RPC api yet