fix bug with pressing more backspace than there are chars
added commands to retrieve remote api from server through the client
added handling of delete key