refactor(te): Remove Class.TEClient.php from core (refs #4607)

Also:
- Refactored autoloader to provide a classExists() static method to check if a
  class is known by the autoloader without triggering a reindexation of all the
  PHP files.