nested url resolutions now use rootForType to get the correct root url

add nestedCommit option to the adapter
Merge pull request #12 from Juvenal1228/issues/9/add-nested-commit-option

add nested commit option