Fixing bugs, adding eMsg Twig support

Signed-off-by: Kevin Nguyen <k.nguyen@thecodingmachine.com>