Building Electrum's IoT Ecosystem: A Journey to Scalable and Secure Battery Swapping for Urban Mobility