Move Transformer logic into Transformer class
Refactor transformer, use async
Add infer, cascade, async to Transformer