Implement model encapsulation
Add socket model encapsulation
Implement messages model encapsulation
Organize front js files
Remove unused files