Prosumer Flexibility Services for Smart Grid Management