Fixes JSLint warnings by handling comparisons stricter
Fixes undefined variable when catching an exception
Fixes cloning locale item by copying the inner site item object
Removes old plugin provider test
Merge pull request #449 from nsendetzky/master

Fixes several potential bugs and warnings