Change API endpoints and add friends support