Added refresh functionality to the graph

There is now an option (refreshInterval) in the Graph object
that controls the refresh. There is also an function called
setRefreshInterval on the same object that updates/disables the
auto refresh.