refactor to remove as many dependencies as possible. Also got rid of SecureAggregationPipeline (as separate class) rolling guts in to other classes.