Added check of token in fetch.php for external images.

Add check of token in fetch.php for external images.
Included tests for handling of external images (hash, token, resize)

Additionally some typos fixes for fetch imagetoken tests are included.