added a new get_instances_in_state function to WolphinProject
+ related tests
+ refactored the Configuration tests
+ more robust stopping logic in WolphinProject
+ some list composition logic changed to list comprehension based
+ other minor