split off the editor functions into it's own file...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>