make contructing and saving xblock independent for json and html/xml files
STUD-154