make publican tool work; fix locking issue; generate the-index on the server side instead of client