More flexible section creation

* Section creation functions now simply return the section element(s) (like createElement) so that options for how the section is inserted, moved, and so on are a bit more flexible