Added basepath option.
Added composer.json.
Removed unnecessary twig use.