RegularGrammar factorization and OutputGraph
Fixing tests and making Regular work
Added simple reguar expressions and theyre slow.  Time to optimize!
Added support for output and output_nodes