Scenario parser

Simple scenario parser based on the one from Dispersy. It can be further improved, but works for now.