Move domain to own file.
Move google signin validation to own file.
Move persistence to own file.
Test getTermPosition.
getUserId returns string to avoid knowledge of domain types.