Allow users to upload templates via both v1 and v2 APIs. Similar to uploading documents.
Adds support for creating documents and templates using our embed components. Support is super primitive at the moment and is being polished.