Fix for sending templates

It was not possible to send templates because the incorrect REST service URL was used. This fix changes the URL for templated message sends.