Add duplicate account detection to core.

From #192.