added file and basic functions for patterns implementation.
Added some basic import/export features for patterns.
Added support for create patterns config. TODO: semantic validation.
Added syntactic validation for insert pattterns.