payment_methods: add lookup by account_id

This also fixes errors and flash handling.

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