Uncommented server-side handling of edit template.

Not sure what I thought was broken before. Didn't change anything and it
works fine as far as I can tell. Think everything's been tested, but
more testing would be good.