Various fixes to extension branch
- fixed runtime problem when extension folder did not exist
- fixed extension build from sources method mechanism
- removed unused imports and unnecessary console outputs
- added few explanatory comments