web front added.
New API, using JSON string.
refactor codes in Course.Class.php, mail.php.