Refactored module into separate preprocessor and Grunt task modules.

Implemented unit test for preprocessor. The current commit includes functioning
implementations for most test cases. I'm still working on the resolve()
function.
Updated preprocessor module and unit tests.