How Is a Microgrid Like a Connected Building?