In the secrets controller, the list functionality had a "secret_type"
argument, but wasn't being used in the actual query to the secrets repo.
This fixes the issue and adds functional tests to ensure the filter
queries are working correctly.
Change-Id: Ifa42f5e817908973dd8b927e4744cdc754a4b027