account: fix implementation of AccountData in DefaultAccountCreationEvent

Avoid potential NPE - AccountData doesn't return any primitive.

Signed-off-by: Pierre-Alexandre Meyer <pierre@ning.com>
jaxrs: set sane default values in AccountJson

For unspecified fields, set sane defaults.

Signed-off-by: Pierre-Alexandre Meyer <pierre@ning.com>
account: fix potential exception in DefaultAccountCreationEvent

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

Add kbAccountId as first argument of the addPaymentMethod call.
Since the payment method is not yet created when Killbill calls the
plugin, it's the only way the plugin can tie it back to an account.

Signed-off-by: Pierre-Alexandre Meyer <pierre@ning.com>
jaxrs: update add payment method resource

Don't look at the body for accountId since it's in the URL.

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