Tweak account's active api

Also introduce generic completion handler type.
Refine account model setup to support test tokens

Also factor out a base url helper.