add support for root-level bindings
support document fragments
Merge pull request #72 from ianstormtaylor/root-level

add support for root-level bindings