Also refactored the portal page for sketches and moved the common code to the lms_sketch doctype module.