Removed unused import.
Removed lots of unused code.
Deprecated old API.
Formatted ExtensionLoader.