Fixed relative resource paths. Added serving of templates via /template-NAME