Moved marking dependencies to the root function

Marking dependencies only in success handler is causing problems with webpack-dev-server.
It couldn't track changes after an error in dependencies. 

To overcome this problem, I moved marking dependencies to root function.
Since we don't have access to includedFiles given by node-sass, I used sass-graph module to find the dependencies.