Retrieve the graph results using the API

This avoids putting loads of data in the DOM and relies on an API call instead to get it.

For now, this doesn't address the routing issue discussed in #15.
So we still have a javascript method call in the dom.