Added basic extension logic.
Added basic extension mechanism, and cleaned up the directory.