update api interface.
remove account model.
refactor api private methods.

[fixes issue #22]
Merge pull request #34 from hirakiuc/fix_api_interface

update api interface.