add options for the list API
fix error when container parameter is omitted but opts is given
Merge pull request #1 from peecky/master

Add list options