initial pass at using the endpoints API to sync friends getlantern/lantern#919