[api2] simplify account serializer
Merge pull request #81 from swpd/master

minor code cleanup