Add basic gateway

This hasn't received much testing, but works locally on my workstation on a public board without using a token.