first pass at accounts api, refs #1