Authentication and sync adapter for KhanAcademy API using Scala on Android