Refactory list command using the api so we can use it in other commands too.
Dispatch open requests prior checking the project state.