Serialize credentials in xml

First commit change serialization in message `registerNym`.
Second commit change serialization in `issueAssetType`

Closing #441
@mhamrle  What about calling the parameter `credentials` instead of `theMap` which just duplicates the type name?