You can install and run piControl, a Node.js web application to shut down or reboot your Raspberry Pi.
More info here.
To make your Raspberry Pi reachable from the Internet, you should give it a static IP address on your local networkgive it a static IP address on your local network, and forward the public HTTP default port (80) to the local IP address of the Raspberry Pi.