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