Rework for use with AutoRemote

AutoRemote doesn't like the built-in url methods, so this PHP is specialized rather then general. It will only work for sending an AutoRemote message.