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.