Extract to file with import directive (#964)

* Fixes #964.
* Works for both LESS & SCSS.
* Null checks and minor improvements in `CssSourceMap`.