Added composer and changed config from xml to yaml

Added composer for twig and yaml
Removed twig code from plugins directory.
Cookie class is now configurable
Updated inline docs
updated phpdoc config