Add Template::render() and convert most files to use it

As per http://community.mybb.com/thread-157882.html