api/v0/sessions{,_test}: add SessionsAPI method as single entry point for /api/v0/sessions, add tests