Initial work on "view" function.

Queries REST server and sets data to scope.