Hard refactoring done. Architecture now is vpe-like.

restored selection bar(but it has a bug)
restored text formatting bar on visual part(disabled for now)
restored editor rotation