Gradle migration and source cleanup (removed demo, keeping library only).