Moves relative urls processing while importing to a separate module.
Fixes #129 - rebase urls relative to output file or to absolute path given by `root` option.
Updates documentation to reflect URLs rebasing.
Update docs.