views.py: Improve parsing of page_id when posting a new article
views.py: Call the remote logout function when logging out