added an extension directory manager and fixed a bunch of bugs in the installer