Feature/token patterns

Completion of 2.0.0 release. Includes complete rewrite, of most of codebase and all specs, as well as new features such as pattern generation.