cas: Improved the encoder
Reorganized the builtin methods
Extracting event handling
runtime: improved the worker pool
Cleanup