Initial support for named options

@lodejard @divega Can you guys review?