Add support for append/prepend fragments

In addition to supporting server directives
of fragment replacing and inner replacing, this
commit also adds the ability to append or
prepend to a selector