1/12/2014 Leo
 * set up new design for index.php
 * create output_json & simplify code
 * add some error cases
1/12/2014 Leo
 * add js/ace functionalities
1/12/2014 Leo
 * correct disconnect bug