Added publish entry to menu (not functioning).
Started working on support for documents as 'endpoints'