Implement the bundles-containing API endpoint.

I think we should probably adhere to the letter of the API spec here,
and reject values that aren't "1", "0" or empty. Perhaps add a little
helper function for that?