Move templates and rules under static directory
Introduce tdir/rdir to provide location of template and rules directories