Editor preview

Many modifications including modularization of the scenery, code
cleaning and started work on editor