Update NanSetPrototypeTemplate()

Merged to one function, that uses NanSetTemplate() which does the version splitting.