data/models/user: add NewSession method for User
wptest/wptest: add MockUser and WithTemporaryDB helpers