Got cookie authentication and syncing somewhat working.