Tests, Makefile, more error checking

* Tests added (Mocha, Should)
* Makefile with build (minification) and test tasks
* More precise error checking for empty variable and wrong formats of dependencies