Refactor api wrapper. Fix circular serialization caused by election queue on names api
Provide client api wrapper integration tests for intents api