Switching jslint for jshint

Cause of this:
http://anton.kovalyov.net/p/why-jshint/
Refactoring getAttributes

* Changing _resolveDependency to just get the formula to be resolved.
* Creating _resolveFormula, that is able to resolve any
dependency formula