Added ability to add templates using http.

Closes #6.