Various fixes

- Added a .gitignore file
- Skipping tests if Twig not enabled