Added some basic exceptions usef by Identity
Further work on identity import