Fixes #28

pay special attention to lines 40-46 & 264-269. The rest of the diffs are just indenting.

This fixes #28 because the editor.setValue(profile); lines was inside the on change listener of the editor, this provoqued that anytime a field on the editor changed, the value was reseted automatically 

@elf-pavlik  take a look and merge+ update on profie.allmende.io