Major refactoring of the recently-made after/before/prepend/append functions.
Now there is a lot of code reuse and a single method defined for inserting before, after, etc.
Improves minification.