Allow displaying only the last revision of bundles in bundles-containing.

Update the bundles-containing endpoint to introduce the only-latest flag.
When activated, only the last revision of each bundle containing the given charm is returned.
This branch fixes #215 

There is a similar bit of code in the search stuff, perhaps there should be a common function somewhere.