Cleaned up the XMLHttpRequest object, polished up system connect and added user login.