Updated code base accordingly to the review notes, added new functionality

Added implementation of code block nodes
Updated models search list
Updated socket connection  class to expose server models list
Agree, this code is pretty messy and unreadable, I'll try to refactor search related code