Towards a software infrastructure for district energy management