Add {attach,detach}VpnGateway and a test case for it, close #145