Taking dependencies in account

Now it takes in account the dependency of each library so they're
concatenated in the correct order.
Taking dependencies in account

Now it takes in account the dependency of each library so they're
concatenated in the correct order.
Adding back type check
Merged
Type test & refactor

Added test to type exclusion and little bit of refactoring to throw
errors in grunt whenever they happen.
Merge pull request #3 from Belelros/master

Fixing type detection