api: support multiple currencies

It turns out we need one merchant id per currency.
Update the configuration code to create one gateway instance
for each configured currency.

Signed-off-by: Pierre-Alexandre Meyer <pierre@ning.com>