Manager API: add methods to get login history
Summary
Currently, if we want to get a user's login history, we need to either:
- enable restSessionServer on portal (security risk), compute the persistent session ID ourself, and call restSessionServer, parse the output (make sense of failedLogin/successLogin), etc
- query the session backend directly (which is probably even worse)
Design proposition
Add new high level methods in the manager api:
- /api/v1/history/uid : returns a JSON array of previous attempts, ordered by date (and not by success/failure)
- /api/v1/history/uid/lastsuccess : returns the last successful login
(we can add more methods later)