[#446] Accept either .min.js or .js in ckanext/*preview tests

We don't care if the page which one is added to the page, as long as
one of them is there.

Fixes #446.
[#226] Implemented generic text highlighter for JSON, XML and plain text. Deleted jsonpreview.
merging changes introduced by pull request #462 by vitorbaptista