added some doc
separate security function from Index.Xapian.
make things work in standalone mode.