Remove RequireJS

	- significant test improvements
	- general refactoring