applied changes from master
restored "history", fixed red links and api/pages
fixed popup for red links
fixed updating the page (disabled permissions check)