Unified way of doing real-time graphs

Make a unified way to fetch real time data based on attributes in DB, much like the graph widget of today, but real-time.

Also, look at another graphing engine than the current one for real-time graphs, could use a refresh.

Issue 2497
Issue 593