added most of the AJAX-server functionality; removed time field from log table