Added Local Caching capability for package.json

As the number of packages on cdnjs keeps increasing, the performance of this plugin kept deteriorating because of the time it takes for the entire package.json to download every time a new script is needed.
To solve this problem, I added the ability to cache the json data for a set amount of time, so a new http get request is not needed every time.