Add a critpath filter to the list_packages method of the API
Add unit-tests checking the behavior of the critpath filter in the API