Start to incorporate the Curve code base into iscore; refactor Scenario into two shared libs