Refactory list command using the api so we can use it in other commands too.
Dispatch open requests prior checking the project state.
Merge pull request #101 from scarabeusiv/master

Move stuff out of list_command to api so it can be reused