introduce .idea folder in gitignore for those who edit in jetrains IDEs

enhance grunt usage + use of JSONLint tool to validate JSON files

unused parameters + unneeded comma + filter loop from enumerables inherited properties

enhancements to gruntfile suggested by Alex Gibson

fix code style