Why are you going through all this hassle when you can just use Bitstamp directly, without Ripple in the middle?
You can still use Ripple if Bitstamp is temporarily down. There might be a future for gateways that focus exclusively on issuing and redeeming IOUs, without offering a proprietary trading engine.