NG: Configuration parser

Implements the configuration spec as defined in #646 with initial configuration version 0.1.
@dmp42 @wking @visualphoenix 
Yeah, let's go with the type alias approach. This would simplify a bit of the parser code.