The deletion of the secrets wasn't happening correctly in the
clean-up methods for the CLI functional tests because items
were being deleted from the lists as the list was being iterated
over.
Includes general clean-up of the entities being created and deleted.
Change-Id: I87d0ef93505ee46ab8314a2562b5d4ab59717649