First attempt at getting AJAX working in subpages

Drag drop resources between subpage sections, inline title editing and
visibility toggle all working. Section drag drop not working and
sections without content still have delete button when content added
even though not able to delete because of extra checks.