Check URL overwrite. Fixes #446.

Add non unique slug warnings for translations as well (was only for original items).

Check that template-generated files don't overwrite each other. Log a critical message otherwise, and exit with non-zero status.