EZP-23074: ezjscore - cleanup and move jquery plugin code into template.

JIRA: https://jira.ez.no/browse/EZP-23074

Not strictly needed, but this moves ezjsc jquery plugin code into its own template template and cleans up formtoken related vars/code a bit.