changed identifier for anonymous XDI authority to $anon
fixed potential null pointer
WIP discovery