server: Add gateway tool

Gets the uploaded file and sends it to the server. Untested and lacks
implementation for failure cases.