updated lib and test, includes template requires

- lib/index will add dependend templates as require calls in transform
- moved template examples to opt/views
- added test for extends and include