Rely less on JLoader.
Remove the unused IS_UNIX constant.
Remove TestCase and TestReflection.
Reduce use of JFactory.
Remove unused code from JFactory.
Remove unused mocks.