Scenario risk

Adds the basic stuff for scenario risk calculator, another pull request with qa tests will follow.