Switch to JSmol

JSmol works now. The functionality of upstream's jsmol.php script is in worksheet_jsmol_data(). Also lots of bugfixes and cleanups.