Account model & JSON support in API.