Added is_dir check

Check if $sPath is a directory before looping the DirectoryIterator.
Merge pull request #4 from coffeemedia/master

Added is_dir check
Minor performance tweaks

improved the performance and/or reduced calls to the following
expensive calls:
- Konsolidate::import: ~25% less calls and ~30% speed improvement
- glob: 80% less calls and 35% speed improvement
- Konsolidate::checkModuleAvailability: ~40% speed improvement
- Konsolidate::getFilePath: ~40% speed loss (sacrficed for the benefit
of the others)
Added configurable port number
Merge pull request #5 from marcobalk/master

Merge pull request #1 from konfirm/master
Merge pull request #2 from konfirm/master

Pull request to update fork