cleaning
some js optimisations
minor fixes
schemas - add  support for external mapping so no need to modify schemas where dependecies point to exernal locations