Community Energy Networks With Storage