Added RequireRemoteHttps attribute to write API endpoints

Fixes #890.

Already in Preview, this is to merge in to dev.