Moved the publishing routines to Revision and indexing to Site