Supporting resource registration at account import time

Fix for #401