Feature/phptemplate refactoring

hey mate, please look over it if you have time. refactored the phptemplate. I think i need to do something on the name - its not really a response, but a renderer. Should we renmae? Also include phpunit