Made deserialize_xkey() smarter.

This avoids the need to pass the testnet flag to it (it now detects what
type of key it is, and deserializes accordingly).