refactored datagraph code
updating stats cache with new api version
Merge remote-tracking branch 'origin/master'