A generalized load management gateway coupling smart buildings to the grid | IEEE Conference Publication | IEEE Xplore