adding basic client side and server templating, I still have a ways to go but this an example that works, but it needs refactoring.