refactor AccountsRestClient

- split parsing part to AccountsParser
- add unit tests for parser and rest client

Related to issue #56