Seperate assemble webhooks function - thanks @cyli

Seperated out assemble_webhooks_in_policies as it was a critical piece
of algorithm that needed to be tested seperately. As a consequence
simplified view_manifest tests by having one test that mocks
assemble_webhooks_in_policies and checks its called and another
integration test that expects completed policies with webhooks