Updated editor#setData() interface, now it'll accept object. Refactored setData() tests. Backward compatibility is still provided.