Added rudimentary connection and AJAX support