Gas and electricity contracts and energy management systems