[doc] Document the configuration and destruction of a Pagelet
[fix] Instead of removing the DOM and the placeholder when remove is set. Just
      remove the placeholder alone as that will kill the rest of the DOM.
[fix] When we're destroyed, also send an `end` packet to the server.
[fix] Free the pagelet only after everything is cleaned.