make _scanImports to return an array of URLs

_scanImports was returning styleSheets but only href info is relevant.
@imports processing at related function was modified to handle hrefs
and to make it more readable.
fix typo and remove some empty lines