new twig module and change implementation

Added new twig module, fixed css/js path changing dynamycally.