Added option factory and tests. Marked regexp option tests as pending.
Moved Option subclasses into separate files.