Web Services for Energy Management in a Smart Grid Environment