First step refactorded, many js code dedeted. Added new service "linker"