exp/template/html: string replacement refactoring.
exp/template/html: string replacement refactoring.

R=mikesamuel
CC=golang-dev
http://codereview.appspot.com/4968063
abustany/go,abustany/go,abustany/go,abustany/go,abustany/go,abustany/go,abustany/go