add filtering when listing containers and images

This includes the **filters** param for **/containers/json** and **/images/json** endpoints.. Used by the **--filter=[]** param of Docker client.
Is there any special reason to make this a pointer?