Add support of licenses
fix licenses detection

use _.isArray instead of typeof that returns 'object'
Merge pull request #4 from krampstudio/master

Implement licenses mapping. Closes #3