added a simple graph controller and made json serialisation work for allsensors repository