A Lightweight Infrastructure for Reconfiguring Applications