AMD: split window.js into three separate files

Conflicts:
	resources/wikia/modules/cache.js