Added a new function to service and app

Now when the app is opened it (currently) displays only the devices
whose parent is 0 (the root). This also required that I created a
serviceoperation called getByPid. While this may be deleted later, I
wanted it for now until we get the RetrieveAll method fully operational