Relative and nested $refs

Allowing relative $ref (there is a need to call docson.doc with a baseUrl)
Allowing inner $ref with a reentrant function (sorry, i'm a newbie on promises stuff)